</div><div class="AppContent GridView"><div id="ProjectBreadCrumbView" class="BreadCrumbView"><div class="breadcrumbs">
<a href="/demos/stable/app/index.php/projects/default/dashboardDetails">Projects</a> &#47; <span>Create Project</span></div></div><div id="ProjectEditAndDetailsView" class="SecuredEditAndDetailsView EditAndDetailsView DetailsView ModelView ConfigurableMetadataView MetadataView"><div class="wrapper"><h1><span class="truncated-title"><span class="ellipsis-content">Create Project</span></span></h1><div class="wide form"><form onSubmit="js:return $(this).attachLoadingOnSubmit(&quot;edit-form&quot;)" id="edit-form" action="<?php echo $this->basePath();?>/project/add" method="post">
<div style="display:none"><input type="hidden" value="3cbccf3c8e50be81be905c3e58f6e0fceba79ced" name="YII_CSRF_TOKEN" /></div><div class="attributesContainer"><div class="left-column"><div class="panel"><table class="form-fields"><colgroup><col class="col-0" /><col class="col-1" /></colgroup>

<?php
$form = $this->form;
$form->setAttribute('action', $this->url('project', array('action' => 'add')));
$form->prepare();?>
									<tbody>
									<tr>
                                            <th>
                                                <label for="name" class="required">name
                                                    <span class="required">*</span>
                                                </label>
                                            </th>
                                            <td colspan="1">
                                                <?php
													echo $this->formElement($form->get('name'));
												?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>
                                                <label for="decs" class="required">Description
                                                    <span class="required">*</span>
                                                </label>
                                            </th>
                                            <td colspan="1">
                                                <?php
													echo $this->formElement($form->get('description'));
												?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>
                                                <label for="status" class="required">Status
                                                    <span class="required">*</span>
                                                </label>
                                            </th>
                                            <td colspan="1">
                                                <?php
													echo $this->formElement($form->get('status'));
												?>
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>
                                                <label for="owned" class="required">Ownedsecurableitem
                                                    <span class="required">*</span>
                                                </label>
                                            </th>
                                            <td colspan="1">
                                                <?php
													echo $this->formElement($form->get('ownedsecurableitem_id'));
												?>
                                            </td>
                                        </tr>
                                        
                                        
</tbody></table></div></div><div class="right-column"><div class="right-side-edit-view-panel"><h3>Rights and Permissions</h3><div id="owner-box"><label for="Project_owner_id" class="required">Owner <span class="required">*</span></label><input name="Project[owner][id]" id="Project_owner_id" value="1" type="hidden" /><div class="has-model-select"><input onblur="clearIdFromAutoCompleteField($(this).val(), &#039;Project_owner_id&#039;);" id="Project_owner_name" type="text" value="Super User" name="Project_owner_name" /><a id="Project_owner_SelectLink" href="#"><span class="model-select-icon"></span><span class="z-spinner"></span></a></div></div><label>Who can read and write</label><div class="radio-input"><input id="Project_explicitReadWriteModelPermissions_type_0" value="" type="radio" name="Project[explicitReadWriteModelPermissions][type]" /><label for="Project_explicitReadWriteModelPermissions_type_0">Owner</label></div><div class="radio-input"><input id="Project_explicitReadWriteModelPermissions_type_1" value="2" type="radio" name="Project[explicitReadWriteModelPermissions][type]" /><label for="Project_explicitReadWriteModelPermissions_type_1">Owner and users in</label>&#160;<div class="hasDropDown"><span class="select-arrow"></span><select id="Project_explicitReadWriteModelPermissions_nonEveryoneGroup" onclick="document.getElementById(&quot;Project_explicitReadWriteModelPermissions_type_1&quot;).checked=&quot;checked&quot;;" name="Project[explicitReadWriteModelPermissions][nonEveryoneGroup]">
<option value="3">East</option>
<option value="5">East Channel Sales</option>
<option value="7">East Direct Sales</option>
<option value="4">West</option>
<option value="6">West Channel Sales</option>
<option value="8">West Direct Sales</option>
</select></div></div><div class="radio-input">
<input id="Project_explicitReadWriteModelPermissions_type_2" value="1" checked="checked" type="radio" name="Project[explicitReadWriteModelPermissions][type]" /><label for="Project_explicitReadWriteModelPermissions_type_2">Everyone</label></div></div></div></div>
<div class="float-bar"><div class="view-toolbar-container clearfix dock">
<div class="form-toolbar"><a id="CancelLinkActionElement--20-yt2" class="cancel-button" href="/zz/public/project/add"><span class="z-label">Cancel</span></a><a id="saveyt3" name="save" class="attachLoading z-button" onclick="jQuery.yii.submitForm(this, &#039;&#039;, {&#039;save&#039;:&#039;save&#039;}); return false;" href=""><span class="z-spinner"></span><span class="z-icon"></span><span class="z-label">Save</span></a></div></div></div></form>
<div id="modalContainer-edit-form"></div></div></div></div></div><div id="FlashMessageView"><div id = "FlashMessageBar"></div></div></div><div id="ModalContainerView"><div id="modalContainer"></div></div><div id="ModalGameNotificationContainerView"></div>
<div id="GameCoinContainerView"></div><div id="FooterView"><a href="http://www.zurmo.com" id="credit-link" class="clearfix"><span>Copyright &#169; Zurmo Inc., 2014. All rights reserved.</span></a><div class="ui-chooser"><a class="icon-mobile" href="/demos/stable/app/index.php/zurmo/default/userInterface?userInterface=Mobile"><span>Show Mobile</span></a><a class="icon-desktop active" href="/demos/stable/app/index.php/zurmo/default/userInterface?userInterface=Desktop"><span>Show Full</span></a></div></div>

</div></div></div><script type="text/javascript">

												
/*<![CDATA[*/
function closeGamificationDashboard(){
                               $('#UserGameDashboardView').remove();
                               $('body').removeClass('gd-dashboard-active');
                               $('#header-game-dashboard-link').html('∂').toggleClass('highlighted');
                           }

                function clearIdFromAutoCompleteField(value, id)
                {
                    if (value == '')
                    {
                        $('#' + id).val('');
                    }
                }
            
jQuery(function($) {

                    jQuery("body").ajaxComplete(
                        function(event, request, options)
                        {
                            if (request.responseText == "sessionTimeout")
                            {
                                $.cookie("sessionTimeoutCookie", 1,
                                        {
                                            expires : 1,
                                            path:  "/"
                                        });
                                window.location.reload(true);
                            }
                        }
                    );
                
$('#claim-item-link').on('click', function(event){
                               event.preventDefault();
                               $(this).off('click');
                               var magicAudio = document.getElementById('collection-item-claimed');
                               magicAudio.play();
                               $('#game-notification').fadeOut(300);
                           });
$('#close-game-notification-link').click(function(event){
                               event.preventDefault();
                               $('#game-notification').fadeOut(300);
                           });
                           $('.gd-dashboard-active').on('click', function(){
                               if($('#UserGameDashboardView').length){
                                   closeGamificationDashboard();
                               }
                               return false;
                           });
$('body').on('click', '#header-game-dashboard-link', function(){jQuery.ajax({'beforeSend':function(){
                        if($("#UserGameDashboardView").length){
                            closeGamificationDashboard();
                            return false;
                        }
                        $("body").addClass("gd-dashboard-active");
                        $("#header-game-dashboard-link").html("‰").toggleClass("highlighted");
                    },'success':function(data){$("#FooterView").after(data);},'url':'/demos/stable/app/index.php/users/default/gameDashboard?id=1','cache':false});return false;});
  $(".nav li").hover(
    function () {
      if ($(this).hasClass("parent")) {
        $(this).addClass("over");
      }
    },
    function () {
      $(this).removeClass("over");
    }
  );

$("#globalSearchScope").bind("multiselectclick", function(event, ui){
                            if ($("#globalSearchScope").multiselect("widget").find(":checkbox:checked").length == 0)
                            {
                                $("#globalSearchScope").multiselect("widget").find(":checkbox").each(function(){
                                    if (this.value == "All" && !this.checked)
                                    {
                                        this.click();
                                    }
                                });
                            }
                            if (ui.value == "All" && ui.checked)
                            {
                                $("#globalSearchScope").multiselect("widget").find(":checkbox").each(function(){
                                    if (this.value != "All" && this.checked)
                                    {
                                        this.click();
                                    }
                                });
                            }
                            else if (ui.value != "All" && ui.checked)
                            {
                                $("#globalSearchScope").multiselect("widget").find(":checkbox").each(function(){
                                    if (this.value == "All" && this.checked)
                                    {
                                        this.click();
                                    }
                                });
                            }
                        });
                       
$('#globalSearchScope').multiselect({'selectedText':'','noneSelectedText':'','header':false,'position':{'my':'right top','at':'right bottom'}}); $(this).setupCheckboxStyling($('#globalSearchScope').parent())
$("#globalSearchInput").bind("focus", function(event, ui){
                            $("#globalSearchInput").autocomplete("option", "source", "/demos/stable/app/index.php/zurmo/default/globalSearchAutoComplete?" + $.param($("#globalSearchScope").serializeArray()));
                        });
                       
jQuery('#globalSearchInput').autocomplete({'select': function(event, ui) {if (ui.item.href.length > 0){window.location = ui.item.href;} return false;},'search': function(event, ui) { $(this).makeOrRemoveTogglableSpinner(true, "#app-search") },'open': function(event, ui) { $(this).makeOrRemoveTogglableSpinner(false, "#app-search") },'position':{'my':'right top','at':'right bottom'},'source':'/demos/stable/app/index.php/zurmo/default/globalSearchAutoComplete'});
 $("#globalSearchInput").data( "autocomplete" )._renderItem = function( ul, item ) {
                            return $( "<li></li>" ).data( "item.autocomplete", item )
                                    .append( "<a><span class=" + item.iconClass + "></span><span>" + item.label + "</span></a>" )
                                    .appendTo( ul );
                        };
$('body').on('click', '#yt0', function(){jQuery.ajax({'beforeSend':function(){
                jQuery('#modalContainer').html('');
                $(this).makeLargeLoadingSpinner(true, '#modalContainer');
                //window.scrollTo(0, 0);
                jQuery('#modalContainer').dialog({
                    'title' : 'Create Task',
                    'autoOpen' : true,
                    'modal' : true,
                    'position' : 'center top+25',
                    'dialogClass' : 'task-dialog',
                    'height' : 'auto',
                    'open': function( event, ui )  { jQuery('#modalContainer').parent().addClass('openingModal'); },
                    'close': function( event, ui ) { jQuery('#modalContainer').parent().removeClass('openingModal');
                                                     $('#modalContainer').dialog('destroy');
                                                     
                                                     }
                });
                return true;
            },'url':'/demos/stable/app/index.php/tasks/default/modalCreate?modalId=modalContainer','cache':false,'success':function(html){jQuery("#modalContainer").html(html)}});return false;});

                    $(function() {
                        $('.truncated-title').ThreeDots({ max_rows:1 });
                    });
jQuery('#Project_owner_name').autocomplete({'select':function(event, ui){ jQuery("#Project_owner_id").val(ui.item["id"]).trigger("change");},'appendTo':$("#Project_owner_name").parent().parent(),'search': function(event, ui)
                                  {
                                       var context = $("#Project_owner_name").parent();
                                       $(".model-select-icon", context).fadeOut(100);
                                       $(this).makeOrRemoveTogglableSpinner(true, context);
                                  },'open': function(event, ui)
                                  {
                                       var context = $("#Project_owner_name").parent();
                                       $(".model-select-icon", context).fadeIn(250);
                                       $(this).makeOrRemoveTogglableSpinner(false, context);
                                  },'close': function(event, ui)
                                  {
                                       var context = $("#Project_owner_name").parent();
                                       $(".model-select-icon", context).fadeIn(250);
                                       $(this).makeOrRemoveTogglableSpinner(false, context);
                                  },'response': function(event, ui)
                                  {
                                       if (ui.content.length < 1)
                                       {
                                           var context = $("#Project_owner_name").parent();
                                           $(".model-select-icon", context).fadeIn(250);
                                           $(this).makeOrRemoveTogglableSpinner(false, context);
                                       }
                                  },'source':'/demos/stable/app/index.php/users/default/autoComplete'});
$('body').off('click.selectLink', '#Project_owner_SelectLink'); $('body').on('click.selectLink', '#Project_owner_SelectLink', function(){jQuery.ajax({'beforeSend':function(){
                jQuery('#modalContainer-edit-form').html('');
                $(this).makeLargeLoadingSpinner(true, '#modalContainer-edit-form');
                //window.scrollTo(0, 0);
                jQuery('#modalContainer-edit-form').dialog({
                    'title' : 'User Search',
                    'autoOpen' : true,
                    'modal' : true,
                    'position' : 'center top+25',
                    'dialogClass' : '',
                    'height' : 'auto',
                    'open': function( event, ui )  { jQuery('#modalContainer-edit-form').parent().addClass('openingModal'); },
                    'close': function( event, ui ) { jQuery('#modalContainer-edit-form').parent().removeClass('openingModal');
                                                     $('#modalContainer-edit-form').dialog('destroy');
                                                     
                                                     }
                });
                return true;
            },'url':'/demos/stable/app/index.php/users/default/modalList?modalTransferInformation%5BsourceIdFieldId%5D=Project_owner_id&modalTransferInformation%5BsourceNameFieldId%5D=Project_owner_name&modalTransferInformation%5BmodalId%5D=modalContainer-edit-form&modalTransferInformation%5BsourceModelId%5D=-20','cache':false,'success':function(html){jQuery("#modalContainer-edit-form").html(html)}});return false;});
$(document).ready(function () { $('#ProjectAccountsForm_Account_ids').tokenInput('/demos/stable/app/index.php/projects/default/autoCompleteAllAccountsForMultiSelectAutoComplete', { queryParam: 'term',hintText: 'Type a account',prePopulate: [],propertyToSearch: 'name',searchDelay: 300,minChars: 1,preventDuplicates: 'true',resultsLimit: 'null',classes: {tokenList: 'token-input-list'}});});
$(document).ready(function () { $('#ProjectContactsForm_Contact_ids').tokenInput('/demos/stable/app/index.php/contacts/variableContactState/autoCompleteAllContactsForMultiSelectAutoComplete', { queryParam: 'term',hintText: 'Type a contact',prePopulate: [],propertyToSearch: 'name',searchDelay: 300,minChars: 1,preventDuplicates: 'true',resultsLimit: 'null',classes: {tokenList: 'token-input-list'}});});
$(document).ready(function () { $('#ProjectOpportunitiesForm_Opportunity_ids').tokenInput('/demos/stable/app/index.php/projects/default/autoCompleteAllOpportunitiesForMultiSelectAutoComplete', { queryParam: 'term',hintText: 'Type a opportunity',prePopulate: [],propertyToSearch: 'name',searchDelay: 300,minChars: 1,preventDuplicates: 'true',resultsLimit: 'null',classes: {tokenList: 'token-input-list'}});});
});
/*]]>*/
</script>
<div class="performance-info">Load time: 0.260 seconds.<br /></div></body></html>
